package wzq.cn.wuziqi.utils;

import android.app.Activity;
import android.view.View;
import android.view.animation.AnimationUtils;
import android.view.animation.TranslateAnimation;

import wzq.cn.wuziqi.R;

/**
 * Created by xiaw on 2015/11/17 0017.
 */
public class AnimUtils {

    /**
     * 一个acitvity从屏幕中间扩散到全屏
     *
     * @param activity
     * @param sx
     * @param sy
     */
    public static void startActivityExpand(Activity activity, int sx, int sy) {

    }

    public static void viewButtomToTop(Activity activity, View v) {

        TranslateAnimation ta = (TranslateAnimation) AnimationUtils.loadAnimation(activity, R.anim.activity_close_in_ainm);
        ta.setFillAfter(true);
        v.startAnimation(ta);
    }
}
